import request from '@/utils/request'

// 测试
// export function getDataByPageAndCondition() {
//   return request({
//     url: '/vue-element-admin/dataQuery/getList/',
//     method: 'get'
//   })
// }

export function getDataByPageAndCondition(data) {
  return request({
    url: '/dataQuery/paginate/',
    method: 'post',
    data: data
  })
}

// 删除条目
export function deleteSelected(data) {
  return request({
    url: '/dataQuery/delete/',
    method: 'post',
    data: data
  })
}

export function statistic(data) {
  return request({
    url: '/dataQuery/statistic/',
    method: 'post',
    data: data
  })
}

// 实现导出
export function derive(data) {
  return request({
    url: '/dataQuery/getImageByPath?path=' + data,
    method: 'get',
    responseType: 'blob'// 指定响应类型为二进制数据
  })
}
